<%--
  Created by IntelliJ IDEA.
  User: 许正雄
  Date: 2021/12/7
  Time: 11:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>后台管理</title>
    <link type="text/css" rel="stylesheet" href="/static/css/style.css" />
    <script type="text/javascript" src="/static/scripts/function-manage.js"></script>
    <script type="text/javascript" src="/static/jquery3.6.0.js"></script>
</head>
<body>
<%@include file="/manage/head.jsp"%>
<div id="position" class="wrap">
    您现在的位置： 管理后台
</div>
<div id="main" class="wrap">
    <%@include file="manage/left.jsp"%>
    <div class="main">
        <h2>修改类型</h2>
        <div class="manage">
            <form id="frm" method="post">
                <table class="form">
                    <tr>
                        <td class="field">类型编码：</td>
                        <td><input type="hidden" value="${showType.id}" name="id">
                            <input id="showType" type="text" disabled class="text" name="showType" value="${showType.showType}" /></td>
                    </tr>
                    <tr>
                        <td class="field">类型名称：</td>
                        <td><input id="showTypeName" type="text" class="text" name="showTypeName" value="${showType.showTypeName}" /></td>
                    </tr>
                    <tr>
                        <td></td>
<%--                        <td><label class="ui-blue"><input id="submit" type="submit" name="submit" value="添加" /></label></td>--%>
                        <td><label class="ui-blue"><button id="tj" type="button">修改</button></label></td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="clear"></div>
</div>


<div class=""></div>
<div id="footer">
</div>
</body>
<script type="text/javascript">
    $(function () {
        $("#tj").click(function () {
                    $.ajax({
                        url: "/updateShowType",
                        type: "post",
                        data: $("#frm").serialize(),
                        success: function (ret) {
                            if (ret * 1 === 1) {
                                alert("修改成功！")
                                window.location.href = "findShowTypePage";
                            }
                        }
                    })
        })
    })
</script>
</html>

